﻿
@{
    ViewBag.Title = "WardInfo";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    var OrganizeId = $.request("OrganizeId");
    $(function () {
        $('#myTab a:first').tab('show');
        $("#wardList").treeview({
            height: 400,
            slimscroll: false,
            showcheck: true,
            url: "/Staff/GetWardInfo",
            param: { staffId: keyValue, OrganizeId: OrganizeId }
        });
    });
    function submitForm() {
        var postData = {};
        postData["wardList"] = String($("#wardList").getCheckedNodes());
        $.submitForm({
            url: "/Staff/UpdateStaffWard?keyValue=" + keyValue,
            param: postData,
            success: function () {
                //$.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>
<form id="formward">
    <div role="tabpanel" class="tab-pane fade in" style="padding-top: 20px; margin-right: 30px;" id="staffward">
        <div id="wardList"></div>
    </div>
</form>


